package com.vic.Utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * @Author: Vic Ly
 */
public class JsonUtils {
    public static String convertObjToJson(Object o){
        if(null == o){
            return null;
        }
        return JSON.toJSONString(o, SerializerFeature.DisableCircularReferenceDetect);
    }
}
